package interviewType

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type InterviewTypeRouter struct {
}

// InitInterviewTypeRouter 初始化 interviewType表 路由信息
func (s *InterviewTypeRouter) InitInterviewTypeRouter(Router *gin.RouterGroup) {
	interviewTypesRouter := Router.Group("interviewTypes").Use(middleware.OperationRecord())
	interviewTypesRouterWithoutRecord := Router.Group("interviewTypes")
	var interviewTypesApi = v1.ApiGroupApp.InterviewTypeApiGroup.InterviewTypeApi
	{
		interviewTypesRouter.POST("createInterviewType", interviewTypesApi.CreateInterviewType)             // 新建interviewType表
		interviewTypesRouter.DELETE("deleteInterviewType", interviewTypesApi.DeleteInterviewType)           // 删除interviewType表
		interviewTypesRouter.DELETE("deleteInterviewTypeByIds", interviewTypesApi.DeleteInterviewTypeByIds) // 批量删除interviewType表
		interviewTypesRouter.PUT("updateInterviewType", interviewTypesApi.UpdateInterviewType)              // 更新interviewType表
	}
	{
		interviewTypesRouterWithoutRecord.GET("findInterviewType", interviewTypesApi.FindInterviewType)       // 根据ID获取interviewType表
		interviewTypesRouterWithoutRecord.GET("getInterviewTypeList", interviewTypesApi.GetInterviewTypeList) // 获取interviewType表列表
	}
}
